package com.hb.trans.mvp.model

import com.basiclib.base.BaseModel
import com.hb.trans.api.EndPoints
import com.hb.trans.api.TRANS_SERVER_PATH
import com.hb.trans.bean.Base
import com.hb.trans.bean.Period
import com.hb.trans.mvp.contract.TransRecordContract
import io.reactivex.Observable
import javax.inject.Inject

class TransRecordModel @Inject constructor(var api: EndPoints) : BaseModel(), TransRecordContract.Model {
    override fun getPeriodDetail(stunum: String, subject: Int): Observable<Base<MutableList<Period>>> {
        return api.getPeriodDetail("${TRANS_SERVER_PATH}hbperiod/detail", stunum, subject)
    }

}
